﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.redshift
{
	// Token: 0x02000104 RID: 260
	public class TRedshiftAnalyzeCompression : TCustomSqlStatement
	{
		// Token: 0x0600088E RID: 2190 RVA: 0x003022DE File Offset: 0x003004DE
		public TRedshiftAnalyzeCompression(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstredshiftAnalyzeCompression;
		}

		// Token: 0x1700017D RID: 381
		// (get) Token: 0x0600088F RID: 2191 RVA: 0x003022F2 File Offset: 0x003004F2
		// (set) Token: 0x06000890 RID: 2192 RVA: 0x003022FA File Offset: 0x003004FA
		public virtual TObjectName TableName
		{
			get
			{
				return this.tableName;
			}
			set
			{
				this.tableName = value;
			}
		}

		// Token: 0x1700017E RID: 382
		// (get) Token: 0x06000891 RID: 2193 RVA: 0x00302303 File Offset: 0x00300503
		// (set) Token: 0x06000892 RID: 2194 RVA: 0x0030230B File Offset: 0x0030050B
		public virtual TObjectNameList ColumnList
		{
			get
			{
				return this.columnList;
			}
			set
			{
				this.columnList = value;
			}
		}

		// Token: 0x06000893 RID: 2195 RVA: 0x00302314 File Offset: 0x00300514
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.tableName = (TObjectName)tdummy.node1;
			this.columnList = (TObjectNameList)tdummy.list1;
			return 0;
		}

		// Token: 0x06000894 RID: 2196 RVA: 0x00302362 File Offset: 0x00300562
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000895 RID: 2197 RVA: 0x00302372 File Offset: 0x00300572
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0400121D RID: 4637
		private TObjectName tableName;

		// Token: 0x0400121E RID: 4638
		private TObjectNameList columnList;
	}
}
